{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class="layui-this">游戏管理</li>
            <li class=""><a href="{:url('/admin/cpgame/add')}">添加CP</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">

                <form class="layui-form layui-form-pane" action="{:url('/admin/cpgame')}" method="get">
                    <div class="layui-inline">
                        <label class="layui-form-label">CP名称</label>
                        <div class="layui-input-inline">
                            <input type="text" name="name" value="{:input('name')}" placeholder="CP名称" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-inline">
                        <button class="layui-btn">搜索</button>
                    </div>
                </form>
                <hr>

                <table class="layui-table">
                    <thead>
                    <tr>
                        <th style="width: 45px;">ID</th>



                        <th style="width: 30px;">CP名称</th>
                        <th style="width: 60px;">联系人</th>
                        <th style="width: 60px;">电话</th>
                        <th style="width: 45px;">邮寄地址</th>
						<th style="width: 45px;">公司名称</th>
						<th style="width: 30px;">统一社会信用代码</th>
                        <th style="width: 45px;">公司注册地址</th>
                        <th style="width: 30px;">操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="list" item="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.contacts}</td>
                        <td>{$vo.phone}</td>
                        <td>{$vo.address}</td>
                        <td>{$vo.company}</td>
						<td>{$vo.company_code}</td>
						<td>{$vo.company_address}</td>
                        <td>
                            <a href="{:url('/admin/cpgame/edit',['id'=>$vo['id']])}" class="layui-btn layui-btn-mini">编辑</a>
                            <a href="{:url('/admin/cpgame/delete',['id'=>$vo['id']])}" class="layui-btn layui-btn-danger layui-btn-mini ajax-delete">删除</a>
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                </table>
                <!--分页-->
                {$list|raw}
            </div>    
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>

</script>
{/block}